package my.test.status.source;

/**
 * @Author 许玉康
 * @Date 2019-10-30 13:25
 */
public class ConcreteState1 extends State {

    @Override
    public void handle1() {
        //本状态下必须处理的逻辑
    }

    @Override
    public void handle2() {
        //设置当前状态为state2
        super.context.setCurrentState(Context.state2);
        //过渡到state2状态，有Context实现
        super.context.handle2();
    }
}
